#ifndef __MISC_OPERATE_H__
#define __MISC_OPERATE_H__
#include <typescommon.h>

int memcpypro(void *dest, size_t destsize, const void *src, size_t srcsize);
int memcpystr(void *dest, size_t destsize, const void *src);
int hexBufferToReadableString(const char *inbuf, int insize, char *outbuffer, int outsize, int littleCharFlag);
struct hexStrFixedBytesStruct
{
    char byteStr[33];
};
struct hexStrFixedBytesStruct getFixedHexBytesStr(const uint8_t *cvrtData, int cvrtSize);
#define getMaxSizeHexStr(buff) getFixedHexBytesStr(buff, sizeof(buff))
void logHexData(const char *hexExplain, const uint8_t *cvrtData, int cvrtSize);
#endif